﻿//2.Write a program that reads two arrays from the console and compares them element by element.


using System;

class CompareArraysElements
{
    static void Main()
    {
        int[] firstArray = new int[5];
        int[] secondArray = new int[5];
        for (int i = 0; i < firstArray.Length; i++)
        {
            firstArray[i] = int.Parse(Console.ReadLine());
            secondArray[i] = int.Parse(Console.ReadLine());
            if (firstArray[i] == secondArray[i])
            {
                Console.WriteLine("firstArray[{0}] is equal to secondArray[{0}]", i);
            }
            else if (firstArray[i] > secondArray[i])
            {
                Console.WriteLine("firstArray[{0}] is greater then secondArray[{0}]", i);
            }
            else
            {
                Console.WriteLine("firstArray[{0}] is smaller then secondArray[{0}]", i);
            }
        }
    }
}
